package com.xframe.domain.sys.base;

import com.xframe.domain.BaseModel;
import com.xframe.xdal.core.annotation.AutoFill;
import com.xframe.xdal.core.annotation.XColumn;
import com.xframe.xdal.core.annotation.XTable;
import com.xframe.xdal.core.constant.AutoFillType;
import lombok.Data;
/**
 * 模型存储库基础表
 *
 * @author xufeng
 * @version 1.0
 * @date 2023-03-28
 */
@Data
@XTable(value = "SYS_REPOSITORY", label = "模型存储库基础表")
public class SysRepository extends BaseModel {

    /**
     * 主键
     */
    @AutoFill(AutoFillType.Snowflake)
    @XColumn(name = "KEY_ID", primaryKeyFlag = true,desc = "主键")
    private Integer keyId;

    /**
     * 存储库类名称
     */
    @XColumn(name = "CLASS_NAME", uniqueFlag = true,length = 200,desc = "存储库类名称")
    private String className;

    /**
     * 描述
     */
    @XColumn(name = "CLASS_DESC", nullFlag = true,length = 500,desc = "描述")
    private String desc;

    /**
     * 是否系统内置 0 = 否 1 = 是
     */
    @AutoFill(defVal = "0")
    @XColumn(name = "SYSTEM_FLAG",desc = "是否系统内置")
    private Integer systemFlag;
}
